package com.fenghongzhang.day007;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class Main2Activity extends AppCompatActivity {
    private TextView show;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        show = (TextView) findViewById(R.id.show);


        Intent intent = getIntent();
        String name = intent.getStringExtra("name");
        show.setText(name);

    }
}
